package cn.com.dingtek.genius.manager.server.repository.db.manager;

import cn.com.dingtek.genius.manager.server.repository.db.entity.DeviceBase;
import cn.com.dingtek.genius.manager.server.repository.db.mapper.DeviceBaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class DeviceBaseManager extends ServiceImpl<DeviceBaseMapper, DeviceBase> {

    public DeviceBase getbyImei(String imei) {
        return getOne(Wrappers.<DeviceBase>query().eq("imei", imei));
    }
}
